/* 全局变量 */
:root {
    --primary-color: #36ad6a;
}

/* 通用样式 */
body, html, h1, h2, h3, h4, ul, li, pre, span, div, button, form, input, a {
    padding: 0;
    margin: 0;
}

a {
    color: #222;
    text-decoration: none;
}

html, body, #root {
    width: 100%;
    height: 100%;
}

/* 动画 */
@keyframes animation {
    0% {
        width: 0%;
        height: 0%;
        border-radius: 100%;
    }
    50% {
        width: 50%;
        height: 50%;
        border-radius: 50%;
    }
    100% {
        width: 100%;
        height: 100%;
        border-radius: 0%;
    }
}

@keyframes animation2 {
    0% {
        width: 100%;
        height: 100%;
        border-radius: 0%;
    }
    50% {
        width: 50%;
        height: 50%;
        border-radius: 50%;
    }
    100% {
        width: 0%;
        height: 0%;
        border-radius: 100%;
    }
}

@keyframes aninema {
    0% {
        width: 0;
        height: 0;
    }
    50% {
        width: 500px;
        height: 500px;
    }
    100% {
        width: 1000px;
        height: 1000px;
    }
}

/* 布局和容器 */
.ant-tabs-content, .ant-tabs-tabpane {
    height: 100%;
}

.drawer-1 .ant-drawer-body {
    padding: 0 !important;
}

.drawer-1 .ant-drawer-header {
    padding: 10px !important;
    border-bottom: none;
}

.girds {
    background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 1px, transparent 0), linear-gradient(90deg, rgba(0, 0, 0, .5) 1px, transparent 0);
    background-position: 50%;
    background-size: 24px 24px;
}

.notfound {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.2);
}

.load-data {
    background-color: #fff;
    height: 100vh;
}

.file-modal {
    transform: translateY(50%) !important;
    width: 550px !important;
    min-width: 0 !important;
}

/* 文本处理 */
.my-o-text-1, .text-2, .text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}

.my-o-text-1 {
    -webkit-line-clamp: 1;
}

.text-2 {
    -webkit-line-clamp: 2;
}

.text {
    -webkit-line-clamp: 3;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 1px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    padding: 5px 10px;
}

/* 通知 */
.notification {
    color: red;
    font-weight: 700;
}

/* 头部 */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.header h1 {
    font-size: 22px;
}

/* 进度条 */
#nprogress {
    background-color: rgba(0, 0, 0, .5);
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
}

#nprogress .bar {
    height: 3px;
}

/* 标签 */
.tag {
    padding: 5px 10px;
    border: 1px solid #ccc;
    margin: 2px;
    display: inline-block;
    border-radius: 2px;
    user-select: none;
}

.tag:hover {
    cursor: pointer;
}

.tag.active {
    background: rgba(0, 0, 0, 0.2);
    color: red !important;
    border: 1px solid red !important;
}

/* 登录动画 */
.login-enter {
    transform: translateX(100px);
    opacity: 0;
}

.login-enter-active {
    transform: translateX(0);
    opacity: 1;
    transition: all .5s linear;
}

.login-exit {
    transform: translateX(0);
    opacity: 1;
}

.login-exit-active {
    transform: translateX(-100px);
    opacity: 0;
    transition: all .5s linear;
}

/* 列表 */
ul, li, em {
    list-style: none;
    font-style: normal;
}

/* 步骤条 */
.my_step .container_steps {
    padding: 0 100px;
}

.my_step .createHeader {
    text-align: center;
    padding-bottom: 10px;
}

.my_step .createHeader button {
    margin: 0 5px;
}

/* 图片部分 */
.img-header {
    margin-bottom: 10px;
}

.img-header button {
    margin-right: 5px;
}

.img-section {
    display: flex;
}

.img-section i {
    display: inline-block;
    width: 100px;
}

.img-section .input {
    width: 200px;
    padding-right: 20px;
}

.img-section .img__container {
    flex: 1;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.img-section .img__container div {
    position: relative;
    padding: 5px;
    border: 2px solid transparent;
    box-sizing: border-box;
    overflow: hidden;
}

.img-section .img__container div span {
    position: absolute;
    width: 20px;
    color: rgb(255, 255, 255);
    text-align: center;
    border-radius: 10px;
    right: 0;
    height: 20px;
    background-color: rgb(54, 173, 106);
    bottom: 0px;
}

.active {
    border: 2px solid #36ad6a !important;
}

/* 布局 */
.ant-layout-header {
    height: 45px;
}

/* 表格 */
.ant-table-wrapper .ant-table-thead>tr>th,
.ant-table-wrapper .ant-table-tbody>tr>td {
    @media screen and (min-width: 1280px) {
        /* padding: 3px 2px !important; */
        /* background: red; */
    }
    @media screen and (max-width: 1280px) {
        padding: 5px 10px !important;
    }
}

/* 轮播点 */
#root .slick-dots-bottom {
    bottom: -12px;
}

#root .slick-dots-bottom li button {
    height: 5px;
    background-color: #36ad6a;
    opacity: .5;
}

#root .slick-dots-bottom li.slick-active button {
    background-color: #36ad6a;
    opacity: 1;
}